var str = "       Runoob        ";
console.log(str.trim());